home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 December / Australian PC User - December 2003 (CD2).iso / software / apps / files / dwmx2k4.exe / Disk1 / data1.cab / Configuration_En / Objects / Head / Refresh.js < prev   
Encoding:
JavaScript  |  2003-09-05  |  789 b   |  31 lines

  1. // Copyright 2000, 2001, 2002, 2003 Macromedia, Inc. All rights reserved.
  2.  
  3.  
  4. //---------------   GLOBAL VARIABLES   ---------------
  5.  
  6. var helpDoc = MM.HELP_objRefresh;
  7.  
  8.  
  9. //---------------     API FUNCTIONS    ---------------
  10.  
  11. function isDOMRequired() { 
  12.     // Return false, indicating that this object is available in code view.
  13.     return false;
  14. }
  15.  
  16. function objectTag() {
  17.   var Form=document.theForm;
  18.   var Delay = Form.Seconds.value;
  19.     if (!Delay)
  20.       Delay = 0;
  21.   var Target=(Form.Target[0].checked)?Delay + ';URL=' + Form.URL.value:Delay;
  22.   return '<meta http-equiv="refresh" content="' + Target + '">'
  23. }
  24.  
  25. //---------------    LOCAL FUNCTIONS   ---------------
  26.  
  27. function browseForFile(){
  28.   var fileName=browseForFileURL();
  29.   document.theForm.URL.value=fileName;
  30. }
  31.